#!/usr/bin/env python
# -*- coding: utf-8 -*-

import smtplib , urllib2 , SimpleHTTPServer , SocketServer

for line in urllib2.urlopen ('http://www.publico.pt'):
	if 'Morgado' in line or 'Silva' in line:
		print line

server = smtplib.SMTP('smtp.cheapnet.it')
try:
	server.sendmail(' xxx@yyy.com', 'zzz@treta.com', """TESTE""")
	server.quit()
except : pass
PORT = 8000
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("", PORT), Handler)
httpd.serve_forever()
